package com.haima.ziliao.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PVideokeMapper;
import com.haima.ziliao.domain.PVideoke;
import com.haima.ziliao.service.IPVideokeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 视频课程Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PVideokeServiceImpl extends ServiceImpl<PVideokeMapper, PVideoke> implements IPVideokeService
{
    @Autowired
    private PVideokeMapper pVideokeMapper;

    /**
     * 查询视频课程
     * 
     * @param id 视频课程主键
     * @return 视频课程
     */
    @Override
    public PVideoke selectPVideokeById(Long id)
    {
        return pVideokeMapper.selectPVideokeById(id);
    }

    /**
     * 查询视频课程列表
     * 
     * @param pVideoke 视频课程
     * @return 视频课程
     */
    @Override
    public List<PVideoke> selectPVideokeList(PVideoke pVideoke)
    {
        return pVideokeMapper.selectPVideokeList(pVideoke);
    }

    /**
     * 新增视频课程
     * 
     * @param pVideoke 视频课程
     * @return 结果
     */
    @Override
    public int insertPVideoke(PVideoke pVideoke)
    {
        return pVideokeMapper.insertPVideoke(pVideoke);
    }

    /**
     * 修改视频课程
     * 
     * @param pVideoke 视频课程
     * @return 结果
     */
    @Override
    public int updatePVideoke(PVideoke pVideoke)
    {
        return pVideokeMapper.updatePVideoke(pVideoke);
    }

    /**
     * 批量删除视频课程
     * 
     * @param ids 需要删除的视频课程主键
     * @return 结果
     */
    @Override
    public int deletePVideokeByIds(Long[] ids)
    {
        return pVideokeMapper.deletePVideokeByIds(ids);
    }

    /**
     * 删除视频课程信息
     * 
     * @param id 视频课程主键
     * @return 结果
     */
    @Override
    public int deletePVideokeById(Long id)
    {
        return pVideokeMapper.deletePVideokeById(id);
    }

    @Override
    public List<Map<String, Object>> listAllMaps(PVideoke pVideoke) {
        return pVideokeMapper.listAllMaps(pVideoke);
    }
}
